Aggregate the specified enumeration into a destination string.

Namespace: Keystone.Polaris
Assembly: Keystone (in Keystone.dll)

public static string Reduce<TItem>( 
this IEnumerable<TItem> itemsIn
Func<TItem, string, string> byApplying 
)
This language is not supported or no code example is available.

Type Parameters

TItem

The type of the enumeration items to be aggregated.

Parameters

itemsIn

Type: IEnumerable<TItem>

The enumeration to be aggregated.

byApplying

Type: Func<TItem, string, string>

The aggregation function to be applied on each of the enumeration items, which are injected alongside with the previous iteration aggregation result, as arguments into this function when called.

Return Value

The string that represents the aggregation cumulative result.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono